Skip to content

Conversation

isabellaenriquez
Copy link
Member

modern

Screenshot 2025-10-08 at 4 10 12 PM Screenshot 2025-10-08 at 4 10 17 PM Screenshot 2025-10-08 at 4 10 35 PM

legacy

Screenshot 2025-10-08 at 4 11 45 PM Screenshot 2025-10-08 at 4 12 21 PM Screenshot 2025-10-08 at 4 12 37 PM

Copy link

linear bot commented Oct 8, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 8, 2025
Comment on lines +33 to +34
<Flex direction="column" gap="xl">
<Heading as="h2">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So nice ❤️

Comment on lines +190 to +204
const Currency = styled('div')`
&::before {
position: absolute;
padding: 9px ${p => p.theme.space.xl} ${p => p.theme.space.md};
content: '$';
color: ${p => p.theme.subText};
font-size: ${p => p.theme.fontSize.sm};
font-weight: bold;
}
`;

const StyledInput = styled(Input)`
padding-left: ${p => p.theme.space['3xl']};
font-weight: bold;
`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't comment on the rest, but seeing a 500 line frontend PR with only two styled components is very nice to see :)

@isabellaenriquez isabellaenriquez marked this pull request as ready for review October 9, 2025 13:02
@isabellaenriquez isabellaenriquez requested a review from a team as a code owner October 9, 2025 13:02
cursor[bot]

This comment was marked as outdated.

}

return onDemandBudgets.onDemandSpendUsed ?? 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Undefined Check Missing in getTotalSpend

In getTotalSpend, when budgetMode is PER_CATEGORY, Object.values(onDemandBudgets.usedSpends) is called without checking if usedSpends is defined, which can lead to a runtime error.

Fix in Cursor Fix in Web

onClick={() => {
if (isLegacy) {
openOnDemandBudgetEditModal({organization, subscription, theme});
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unexpected Theme Parameter Causes Errors

The openOnDemandBudgetEditModal function is called with a theme parameter that its definition does not expect. This mismatch could lead to runtime errors.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants